package com.zhongkai.controller;

import com.zhongkai.app.service.DeviceOperationService;
import com.zhongkai.model.utils.ZhongkaiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DeviceOperationController {
    @Autowired
    private DeviceOperationService deviceOperationService;


    /**
     * 设备上线/新设备添加
     * */
    @RequestMapping(value = "/device/device_add", produces = "application/json;charset=utf-8")
    @ResponseBody
    public ZhongkaiResult deviceAdd(
            String device_id, //设备编号
            String device_ip,//设备ip
            String device_ver,//版本号
            @RequestParam(defaultValue = "0")Integer device_code,//版本号标识
            @RequestParam(defaultValue = "0")Integer set_status//设备状态

    ){
     //   ZhongkaiResult zhongkaiResult = deviceOperationService.deviceAdd(device_id, device_ip, device_ver, device_code, set_status);


        return null;
    }
}
